//using TypeMock.ArrangeActAssert;
using Microsoft.SharePoint;
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace SDSFileUpload.Tests
{
    [TestClass]
    public class UnitTest1
    {
        //[Isolated]
        [TestMethod]
        public void TestMethod1()
        {
            /*  
             * 2011.12.29 Keith Callis Removed per Scott Brickey
             * 
             
            string inpFormat = "[{user:name}][{datetime:\"yyyy'-'MM'-'dd' 'HH'-'mm'-'ss\"}] {filename}"; // "[{user:name}][{datetime:s}] {filename}";
            SPUser fakeSPUser = Isolate.Fake.Instance<SPUser>();
            fakeSPUser.Name = "sbrickey";
            DateTime inpDateTime = DateTime.Now;
            string inpFilename = "FileName.ext";

            string ExpectedResult = String.Format("[{0}][{1:s}] {2}", fakeSPUser.Name, inpDateTime, inpFilename);

            string ActualResult = SDSFileUpload.SDSUpload.SDSUploadWebPart.FormatFilename(inpFormat, fakeSPUser, inpDateTime, inpFilename);

            Assert.AreEqual(ExpectedResult, ActualResult, "Expected [{0}] but got [{1}]",
                            new object[] {ExpectedResult, ActualResult});
             
             * 
             */ 
        }
    }
}
